wayland: Explicitly require RGBA8888
authorMatthias Clasen <mclasen@redhat.com>
Mon, 17 Jun 2019 16:41:01 +0000 (12:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 17 Jun 2019 16:41:01 +0000 (12:41 -0400)
Its the format we expect to have. If we want to
support 10-bit visuals at some point, that should
be an explicit decision.

gdk/wayland/gdkglcontext-wayland.c

index edeca4916c038b4e2bad5db4c99a65a6f81d5e9c..40df428a384a8be823e25ffc0efc69900f9262b1 100644 (file)
@@ -391,13 +391,13 @@ find_eglconfig_for_surface (GdkSurface  *surface,
   attrs[i++] = EGL_RGB_BUFFER;
 
   attrs[i++] = EGL_RED_SIZE;
-  attrs[i++] = 1;
+  attrs[i++] = 8;
   attrs[i++] = EGL_GREEN_SIZE;
-  attrs[i++] = 1;
+  attrs[i++] = 8;
   attrs[i++] = EGL_BLUE_SIZE;
-  attrs[i++] = 1;
+  attrs[i++] = 8;
   attrs[i++] = EGL_ALPHA_SIZE;
-  attrs[i++] = 1;
+  attrs[i++] = 8;
 
   attrs[i++] = EGL_NONE;
   g_assert (i < MAX_EGL_ATTRS);